package com.youlai.boot.system.converter;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.youlai.boot.system.model.vo.TaskTableVO;
import org.mapstruct.Mapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.youlai.boot.system.model.entity.TaskTable;
import com.youlai.boot.system.model.form.TaskTableForm;

/**
 * TaskTable对象转换器
 *
 * @author Gwd
 * @since 2025-03-07 17:09
 */
@Mapper(componentModel = "spring")
public interface TaskTableV2Converter{

    TaskTableForm toForm(TaskTable entity);


    TaskTable toEntity(TaskTableForm formData);

    Page<TaskTableVO> toPageVO(Page<TaskTable> data);
}